/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.singulart.bottomnavigationbar;

import ohos.agp.components.element.VectorElement;

/**
 * set button background and size
 */
public class VectorPixelMap {
    private VectorElement[] mElement;
    private int mWidth;
    private int mHeight;

    public VectorPixelMap() {}

    public VectorPixelMap(VectorElement[] element, int width, int height) {
        this.mElement = element;
        this.mWidth = width;
        this.mHeight = height;
    }

    /**
     * get VectorElement(normal and press status)
     *
     * @return VectorElement[]
     */
    public VectorElement[] getElement() {
        return mElement;
    }

    /**
     * set normal and press status VectorElement
     *
     * @param element VectorElement
     */
    public void setElement(VectorElement[] element) {
        this.mElement = element;
    }

    /**
     * get width
     *
     * @return int
     */
    public int getWidth() {
        return mWidth;
    }

    /**
     * set width
     *
     * @param width int
     */
    public void setWidth(int width) {
        this.mWidth = width;
    }

    /**
     * get height
     *
     * @return int
     */
    public int getHeight() {
        return mHeight;
    }

    /**
     * set height
     *
     * @param height int
     */
    public void setHeight(int height) {
        this.mHeight = height;
    }

    @Override
    public String toString() {
        return "VectorPixelMap{" + "element=" + mElement + ", Width=" + mWidth + ", Height=" + mHeight + '}';
    }
}
